# !/usr/bin/env python
# -*- coding: utf-8 -*-
import random


# 生成随机数组
def random_arr(n):
    num_arr = []
    for i in range(0, n):
        ele = random.randint(0, n)
        num_arr.append(ele)
    return num_arr


# 生成随机范围数组
def random_scale_arr(n, scale):
    num_arr = []
    for i in range(0, n):
        ele = random.randint(0, scale)
        num_arr.append(ele)
    return num_arr
